package com.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.gulimall.member.entity.MemberEntity;
import com.gulimall.member.excetpion.PhoneExistExcetpion;
import com.gulimall.member.excetpion.UserNameExistException;
import com.gulimall.member.vo.MemberLoginVo;
import com.gulimall.member.vo.MemberRegistVo;
import com.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * @author shushushu
 * @email 717776244@qq.com
 * @date 2020-11-23 15:46:54
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);


    void checkPhoneUnique(String phone) throws PhoneExistExcetpion;

    void checkUserNmaeUnique(String userName) throws UserNameExistException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(SocialUser socialUser) throws Exception;
}

